package com.senney.spring_3x.enable;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;


@Configuration
@EnableService
public class App03 {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(App03.class);
        System.out.println(context.getBean(DemoService03.class));
    }
}
